Repository navigation
[javadoc] Remove stale @throws from CSVFormat.withRecordSeparator(String) - #645
Closed
sergiparpal wants to merge 1 commit into
Closed
sergiparpal wants to merge 1 commit into
sergiparpal wants to merge 1 commit into
Conversation
…ing) The Javadoc says the method throws IllegalArgumentException if the record separator is none of CR, LF or CRLF. CSVFormat has no such check: 43560d9 added one to validate() in July 2014, and bb54feb removed it four days later together with the @throws of withRecordSeparator(char), but left this one. The method accepts any string, like Builder.setRecordSeparator(String), whose Javadoc has no @throws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
garydgregory
marked this pull request as draft
November 29, 2026 15:21
Member
|
@sergiparpal |
Author
|
Thanks for the review, and for 2b38814: it replaces the CR/LF/CRLF condition this PR was about. Closing in favor of that commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Javadoc of the deprecated
CSVFormat.withRecordSeparator(String)says:CSVFormathas no such check. 43560d9 added one tovalidate()in July 2014, and bb54feb removed it four days later, together with the matching@throwsofwithRecordSeparator(char), but left this one.CSVFormat.DEFAULT.withRecordSeparator("abc")returns a format whose record separator is"abc", asBuilder.setRecordSeparator(String)does; that method's Javadoc has no@throws.This PR removes the stale
@throws. It changes Javadoc only.mvn; that'smvnon the command line by itself.